MarkdownNotes

View the Project on GitHub JungAn2/MarkdownNotes

2.1-1 THE CLIENT-SERVER PARADIGM.

Which of the characteristics below are associated with a client-server approach to structuring network applications (as opposed to a P2P approach)?

2.1-2 THE PEER-TO-PEER (P2P) PARADIGM.

Which of the characteristics below are associated with a P2P approach to structuring network applications (as opposed to a client-server approach)?

2.1-3 UDP SERVICE.

When an application uses a UDP socket, what transport services are provided to the application by UDP? Check all that apply.

2.1-4 TCP SERVICE.

When an application uses a TCP socket, what transport services are provided to the application by TCP? Check all that apply.

2.2-1 “HTTP IS STATELESS.”

What do we mean when we say “HTTP is stateless”? In answering this question, assume that cookies are not used. Check all answers that apply.

2.2-2 HTTP COOKIES.

What is an HTTP cookie used for?

2.2-3 THE HTTP GET.

What is the purpose of the HTTP GET message?

2.2-4 CONDITIONAL HTTP GET.

What is the purpose of the conditional HTTP GET request message?

2.2-5 A DETAILED LOOK AT AN HTTP GET (1).

Suppose a client is sending an HTTP GET request message to a web server, gaia.cs.umass.edu. Suppose the client-to-server HTTP GET message is the following:

GET /kurose_ross_sandbox/interactive/quotation2.htm HTTP/1.1
Host: gaia.cs.umass.edu
Accept: text/plain, text/html, text/xml, image/jpeg, image/gif, audio/mpeg, audio/mp4, video/wmv, video/mp4,
Accept-Language: en-us, en-gb;q=0.1, en;q=0.7, fr, fr-ch, da, de, fi
If-Modified-Since: Wed, 09 Sep 2020 16:06:01 -0700
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11

What version of HTTP is the client using? [Note: you can find additional questions similar to this here.]

2.2-6 A DETAILED LOOK AT AN HTTP GET (2).

Again, suppose a client is sending an HTTP GET request message to a web server, gaia.cs.umass.edu. The client-to-server HTTP GET message is the following (same as in previous problem):

GET /kurose_ross_sandbox/interactive/quotation2.htm HTTP/1.1
Host: gaia.cs.umass.edu
Accept: text/plain, text/html, text/xml, image/jpeg, image/gif, audio/mpeg, audio/mp4, video/wmv, video/mp4,
Accept-Language: en-us, en-gb;q=0.1, en;q=0.7, fr, fr-ch, da, de, fi
If-Modified-Since: Wed, 09 Sep 2020 16:06:01 -0700
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11

What is the language in which the client would least prefer to get a response? [You may have to search around the Web a bit to answer this.]

[Note: you can find additional questions similar to this here.]

Aprrently en-US does not equal US English

2.2-7 A DETAILED LOOK AT AN HTTP GET (3).

Again, suppose a client is sending an HTTP GET request message to a web server, gaia.cs.umass.edu. Suppose the client-to-server HTTP GET message is the following (same as in previous problem):

GET /kurose_ross_sandbox/interactive/quotation2.htm HTTP/1.1
Host: gaia.cs.umass.edu
Accept: text/plain, text/html, text/xml, image/jpeg, image/gif, audio/mpeg, audio/mp4, video/wmv, video/mp4,
Accept-Language: en-us, en-gb;q=0.1, en;q=0.7, fr, fr-ch, da, de, fi
If-Modified-Since: Wed, 09 Sep 2020 16:06:01 -0700
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11

Does the client have a cached copy of the object being requested?

[Note: you can find additional questions similar to this here.]

2.2-8 A DETAILED LOOK AT AN HTTP REPLY.

Suppose now the server sends the following HTTP response message the client:

HTTP/1.0 200 OK
Date: Wed, 09 Sep 2020 23:46:21 +0000
Server: Apache/2.2.3 (CentOS)
Last-Modified: Wed, 09 Sep 2020 23:51:41 +0000
ETag:17dc6-a5c-bf716880.
Content-Length: 418
Connection: Close
Content-type: image/html

Will the web server close the TCP connection after sending this message? [Note: you can find more questions like this one here.]

2.2-9 WHY WEB CACHING?

Which of the following are advantages of using a web cache? Sselect one or more answers.

2.2-10 HTTP/2 VERSUS HTTP/1.1.

Which of the following are changes between HTTP 1.1 and HTTP/2? Note: select one or more answers.

2.2-11 WHAT'S IN AN HTTP REPLY?

Which of the following pieces of information will appear in a server’s application-level HTTP reply message? (Check all that apply.)

2.2-12 IF-MODIFIED-SINCE.

What is the purpose of the If-Modified-Since field in a HTTP GET request message

2.2-13 COOKIES.

What is the purpose of a cookie value in the HTTP GET request?

2.2-14 HTTP GET (EVEN MORE).

Suppose a client is sending an HTTP GET message to a web server, gaia.cs.umass.edu. Suppose the client-to-server HTTP GET message is the following:

GET /kurose_ross_sandbox/interactive/quotation2.htm HTTP/1.1
Host: gaia.cs.umass.edu
Accept: text/plain, text/html, text/xml, image/jpeg, image/gif, audio/mpeg, audio/mp4, video/wmv, video/mp4,
Accept-Language: en-us, en-gb;q=0.1, en;q=0.7, fr, fr-ch, da, de, fi
If-Modified-Since: Wed, 09 Sep 2020 16:06:01 -0700
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11

Does the client have a cached copy of the object being requested?

2.2-15 WHAT HAPPENS AFTER AN HTTP REPLY?

Suppose an HTTP server sends the following HTTP response message a client:

HTTP/1.0 200 OK
Date: Wed, 09 Sep 2020 23:46:21 +0000
Server: Apache/2.2.3 (CentOS)
Last-Modified: Wed, 09 Sep 2020 23:51:41 +0000
ETag:17dc6-a5c-bf716880.
Content-Length: 418
Connection: Close
Content-type: image/html

Will the web server close the TCP connection after sending this message?

2.3-1 E-MAIL DELAYS.

How many RTTs are there from when a client first contacts an email server (by initiating a TCP session) to when the client can begin sending the email message itself – that is following all initial TCP or SMTP handshaking required? Recall the figure below from our class notes:

2.3-2 COMPARING AND CONTRASTING HTTP AND SMTP.

Which of the following characteristics apply to HTTP only (and do not apply to SMTP)? Note: check one or more of the characteristics below.

2.3-3 COMPARING AND CONTRASTING HTTP AND SMTP (2).

Which of the following characteristics apply to SMTP only (and do not apply to HTTP)? Note: check one or more of the characteristics below.

2.3-4 COMPARING AND CONTRASTING HTTP AND SMTP (3).

Which of the following characteristics apply to both HTTP and SMTP? Note: check one or more of the characteristics below.

2.3-5 WHICH E-MAIL PROTOCOL?

Match the functionality of a protocol with the name of a the email protocol (if any) that implements that functionality.

2.4-1 DNS FUNCTIONS

. Match the function of a server to a given type of DNS server in the DNS server hierarchy.

2.4-2 WHY DOES THE DNS PERFORM CACHING?

What is the value of caching in the local DNS name server? Check all that apply.

2.4-3 WHAT'S IN THE DNS TYPE A RESOURCE RECORD?

What information does the type “A” resource record hold in the DNS database? Check all that apply.

2.4-4 DNS IN ACTION (1).

Suppose that the local DNS server caches all information coming in from all root, TLD, and authoritative DNS servers for 20 time units. (Thus, for example, when a root server returns the name and address of a TLD server for .com, the cache remembers that this is the TLD server to use to resolve a .com name). Assume also that the local cache is initially empty, that iterative DNS queries are always used, that DNS requests are just for name-to-IP-address translation, that 1 time unit is needed for each server-to-server or host-to-server (one way) request/response, and that there is only one authoritative name server (each) for any .edu or .com domain.

Consider the following DNS requests, made by the local host at the given times:

t=0, the local host requests that the name gaia.cs.umass.edu be resolved to an IP address.
t=1, the local host requests that the name icann.org be resolved to an IP address.
t=5, the local host requests that the name cs.umd.edu be resolved to an IP address. (Hint: be careful!)
t=10, the local host again requests that the name gaia.cs.umass.edu be resolved to an IP address.
t=12, the local host requests that the name cs.mit.edu be resolved to an IP address.
t=30, the local host again requests that the name gaia.cs.umass.edu be resolved to an IP address. (Hint: be careful!)
Which of the requests require 8 time units to be resolved?

2.4-5 DNS IN ACTION (2).

Suppose that the local DNS server caches all information coming in from all root, TLD, and authoritative DNS servers for 20 time units. (Thus, for example, when a root server returns the name and address of a TLD server for .com, the cache remembers that this is the TLD server to use to resolve a .com name). Assume also that the local cache is initially empty, that iterative DNS queries are always used, that DNS requests are just for name-to-IP-address translation, that 1 time unit is needed for each server-to-server or host-to-server (one way) request/response, and that there is only one authoritative name server (each) for any .edu or .com domain.

Consider the following DNS requests, made by the local host at the given times:

t=0, the local host requests that the name gaia.cs.umass.edu be resolved to an IP address.
t=1, the local host requests that the name icann.org be resolved to an IP address.
t=5, the local host requests that the name cs.umd.edu be resolved to an IP address. (Hint: be careful!)
t=10, the local host again requests that the name gaia.cs.umass.edu be resolved to an IP address.
t=12, the local host requests that the name cs.mit.edu be resolved to an IP address.
t=30, the local host again requests that the name gaia.cs.umass.edu be resolved to an IP address. (Hint: be careful!)
Which of the requests require 6 time units to be resolved?

2.4-6 DNS IN ACTION (3).

Suppose that the local DNS server caches all information coming in from all root, TLD, and authoritative DNS servers for 20 time units. (Thus, for example, when a root server returns the name and address of a TLD server for .com, the cache remembers that this is the TLD server to use to resolve a .com name). Assume also that the local cache is initially empty, that iterative DNS queries are always used, that DNS requests are just for name-to-IP-address translation, that 1 time unit is needed for each server-to-server or host-to-server (one way) request/response, and that there is only one authoritative name server (each) for any .edu or .com domain.

Consider the following DNS requests, made by the local host at the given times:

t=0, the local host requests that the name gaia.cs.umass.edu be resolved to an IP address.
t=1, the local host requests that the name icann.org be resolved to an IP address.
t=5, the local host requests that the name cs.umd.edu be resolved to an IP address. (Hint: be careful!)
t=10, the local host again requests that the name gaia.cs.umass.edu be resolved to an IP address.
t=12, the local host requests that the name cs.mit.edu be resolved to an IP address.
t=30, the local host again requests that the name gaia.cs.umass.edu be resolved to an IP address. (Hint: be careful!)
Which of the requests require 2 time units to be resolved?

2.4-7 THE LOCAL DNS SERVER.

Check all of the phrases below that state a true property of a local DNS server.

2.4-8 THE DNS AUTHORITATIVE NAME SERVER.

What is the role of an authoritative name server in the DNS? (Check all that apply)

No 2.5

2.6-1 .6-4

Manifest file. What is the purpose of a manifest file in a streaming multimedia setting?

2.6-2 CDNS.

What approach is taken by a CDN to stream content to hundreds of thousands of simultaneous users?

2.6-3 STREAMING VIDEO DEFINITIONS

. Match the definition/function of an element or approach in a networked streaming video system, with its name.

2.6-4 WHAT IS DASH?

In DASH (Dynamic, Adaptive Streaming over HTTP), a server divides a video file into chunks that ... (pick best completion from below)

2.7-1 UDP SOCKETS.

Which of the following characteristics below are associated with a UDP socket? Check one or more that apply.

2.7-2 TCP SOCKETS.

Which of the following characteristics below are associated with a TCP socket? Check one or more that apply.

2.7-3 SERVER REPLY (UDP).

How does the networked application running on a server know the client IP address and the port number to reply to in response to a received datagram?

2.7-4 HOW MANY SOCKETS?

Suppose a Web server has five ongoing connections that use TCP receiver port 80, and assume there are no other TCP connections (open or being opened or closed) at that server. How many TCP sockets are in use at this server?

2.7-5 SOCKET CONNECT().

What happens when a socket connect() procedure is called/invoked?